// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FA_SALE_ASSETS
// * CreateDate    : 2013-08-28 11:00:55
// * Creater       : CodeSmith
// * LastChangeDate: 2013-08-28 11:00:55
// * LastChanger   : 2013-08-28 11:00:55
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Fa
{
/// <summary>
    /// FaSaleAssets
    /// </summary>
    public partial class FaSaleAssetsBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objFaSaleAssetsEntity">Entity</param>
        /// <returns>Entity</returns>
        public static FaSaleAssetsEntity GetFaSaleAssets(FaSaleAssetsEntity objFaSaleAssetsEntity)
        {
            return DataAccess.SelectSingle<FaSaleAssetsEntity>(objFaSaleAssetsEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objFaSaleAssetsEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertFaSaleAssets(FaSaleAssetsEntity objFaSaleAssetsEntity)
        {
            return DataAccess.Insert(objFaSaleAssetsEntity);
        }

        public static bool InsertFaSaleAssets(List<FaSaleAssetsEntity> objFaSaleAssetsEntityList)
        {
            return DataAccess.Insert(objFaSaleAssetsEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objFaSaleAssetsEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateFaSaleAssets(FaSaleAssetsEntity objFaSaleAssetsEntity)
        {
            return DataAccess.Update(objFaSaleAssetsEntity);
        }

        public static bool UpdateFaSaleAssets(List<FaSaleAssetsEntity> objFaSaleAssetsEntityList)
        {
            return DataAccess.Update<FaSaleAssetsEntity>(objFaSaleAssetsEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objFaSaleAssetsEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteFaSaleAssets(FaSaleAssetsEntity objFaSaleAssetsEntity)
        {
            return DataAccess.Delete(objFaSaleAssetsEntity);
        }

        public static bool DeleteFaSaleAssets(List<FaSaleAssetsEntity> objFaSaleAssetsEntityList)
        {
            return DataAccess.Delete<FaSaleAssetsEntity>(objFaSaleAssetsEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetFaSaleAssetsAll()
        {
            return DataAccess.SelectAllDataSet<FaSaleAssetsEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<FaSaleAssetsEntity> GetFaSaleAssetsAllList()
        {
            return DataAccess.SelectAll<FaSaleAssetsEntity>();
        }
        #endregion
	}
	
	
}	

